200 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutFormatAnchor(VARIANT_TRUE,L"<b><u><fgcolor=FF0000> </fgcolor></u></b>"); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellCaptionFormat(var_Items->AddItem("Just an <a1>anchor</a> element ..."),long(0),EXTREELib::exHTML); EXTREELib::IItemsPtr var_Items1 = spTree1->GetItems(); var_Items1->PutCellCaptionFormat(var_Items1->AddItem("Just another <a2>anchor</a> element ..."),long(0),EXTREELib::exHTML); |
199 |
Can I change the font for the tooltip
|
198 |
Can I change the font for the tooltip
|
197 |
Can I change the order of the buttons in the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutScrollOrderParts(EXTREELib::exHScroll,L"t,l,r"); spTree1->PutScrollOrderParts(EXTREELib::exVScroll,L"t,l,r"); spTree1->PutScrollBars(EXTREELib::exDisableBoth); |
196 |
The thumb size seems to be very small. Can I make it bigger
|
195 |
How can I display my text on the scroll bar, using a different font
|
194 |
How can I display my text on the scroll bar, using a different font
|
193 |
How can I display my text on the scroll bar
|
192 |
How do I enlarge or change the size of the control's scrollbars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutScrollHeight(18); spTree1->PutScrollWidth(18); spTree1->PutScrollButtonWidth(18); spTree1->PutScrollButtonHeight(18); spTree1->PutScrollBars(EXTREELib::exDisableBoth); |
191 |
How do I assign a tooltip to a scrollbar
|
190 |
How do I assign an icon to the button in the scrollbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spTree1->PutScrollPartVisible(EXTREELib::exHScroll,EXTREELib::exLeftB1Part,VARIANT_TRUE); spTree1->PutScrollPartCaption(EXTREELib::exHScroll,EXTREELib::exLeftB1Part,L"<img>1</img>"); spTree1->PutScrollHeight(18); spTree1->PutScrollButtonWidth(18); spTree1->PutScrollBars(EXTREELib::exDisableNoHorizontal); |
189 |
I need to add a button in the scroll bar. Is this possible
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutScrollPartVisible(EXTREELib::exHScroll,EXTREELib::exLeftB1Part,VARIANT_TRUE); spTree1->PutScrollPartCaption(EXTREELib::exHScroll,EXTREELib::exLeftB1Part,L"1"); spTree1->PutScrollBars(EXTREELib::exDisableNoHorizontal); |
188 |
Can I display an additional buttons in the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutScrollPartVisible(EXTREELib::exHScroll,EXTREELib::exLeftB1Part,VARIANT_TRUE); spTree1->PutScrollPartVisible(EXTREELib::exHScroll,EXTREELib::exLeftB2Part,VARIANT_TRUE); spTree1->PutScrollPartVisible(EXTREELib::exHScroll,EXTREELib::exRightB6Part,VARIANT_TRUE); spTree1->PutScrollPartVisible(EXTREELib::exHScroll,EXTREELib::exRightB5Part,VARIANT_TRUE); spTree1->PutScrollBars(EXTREELib::exDisableNoHorizontal); |
187 |
Can I display the picture aligned to the right, while the text aligned to the left
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutDefaultItemHeight(48); spTree1->GetColumns()->Add(L"C1"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); _variant_t s = var_Items->GetSplitCell(var_Items->AddItem("Text"),long(0)); var_Items->PutCellPicture(vtMissing,s,((IDispatch*)(spTree1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Items->PutCellHAlignment(vtMissing,s,EXTREELib::RightAlignment); |
186 |
How can I display a custom size picture to a cell or item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutDefaultItemHeight(48); spTree1->GetColumns()->Add(L"C1"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellPicture(var_Items->AddItem("Text"),long(0),((IDispatch*)(spTree1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); |
185 |
How can I display a multiple pictures to a cell or item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutDefaultItemHeight(48); spTree1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spTree1->PutHTMLPicture(L"pic2","c:\\exontrol\\images\\auction.gif"); spTree1->GetColumns()->Add(L"C1"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellCaptionFormat(var_Items->AddItem("<img>pic1</img> Text <img>pic2</img> another text ..."),long(0),EXTREELib::exHTML); |
184 |
How do I change the column's foreground color for numbers between an interval - Range
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); EXTREELib::IConditionalFormatPtr var_ConditionalFormat = spTree1->GetConditionalFormats()->Add(L"%0 >= 2 and %0 <= 10",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXTREELib::FormatApplyToEnum(0x1)); spTree1->GetColumns()->Add(L"N1"); spTree1->GetColumns()->Add(L"N2"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem(long(1)),long(1),long(2)); EXTREELib::IItemsPtr var_Items1 = spTree1->GetItems(); var_Items1->PutCellCaption(var_Items1->AddItem(long(3)),long(1),long(3)); EXTREELib::IItemsPtr var_Items2 = spTree1->GetItems(); var_Items2->PutCellCaption(var_Items2->AddItem(long(10)),long(1),long(11)); EXTREELib::IItemsPtr var_Items3 = spTree1->GetItems(); var_Items3->PutCellCaption(var_Items3->AddItem(long(13)),long(1),long(31)); spTree1->PutSearchColumnIndex(1); |
183 |
How do I change the item's foreground color for numbers between an interval - Range
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetConditionalFormats()->Add(L"%0 >= 2 and %0 <= 10",vtMissing)->PutForeColor(RGB(255,0,0)); spTree1->GetColumns()->Add(L"Numbers"); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); spTree1->GetItems()->AddItem(long(10)); spTree1->GetItems()->AddItem(long(20)); |
182 |
How do I change the item's background color for numbers less than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetConditionalFormats()->Add(L"%0 < 10",vtMissing)->PutBackColor(RGB(255,0,0)); spTree1->GetColumns()->Add(L"Numbers"); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); spTree1->GetItems()->AddItem(long(10)); spTree1->GetItems()->AddItem(long(20)); |
181 |
How do I underline the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetConditionalFormats()->Add(L"%0 >= 10",vtMissing)->PutUnderline(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Numbers"); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); spTree1->GetItems()->AddItem(long(10)); spTree1->GetItems()->AddItem(long(20)); |
180 |
How do I highlight in italic the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetConditionalFormats()->Add(L"%0 >= 10",vtMissing)->PutStrikeOut(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Numbers"); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); spTree1->GetItems()->AddItem(long(10)); spTree1->GetItems()->AddItem(long(20)); |
179 |
How do I highlight in italic the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetConditionalFormats()->Add(L"%0 >= 10",vtMissing)->PutItalic(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Numbers"); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); spTree1->GetItems()->AddItem(long(10)); spTree1->GetItems()->AddItem(long(20)); |
178 |
How do I highlight in bold the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetConditionalFormats()->Add(L"%0 >= 10",vtMissing)->PutBold(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Numbers"); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); spTree1->GetItems()->AddItem(long(10)); spTree1->GetItems()->AddItem(long(20)); |
177 |
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->PutLinesAtRoot(EXTREELib::exGroupLinesAtRoot); spTree1->PutHasButtons(EXTREELib::exCustom); spTree1->PutHasButtonsCustom(VARIANT_FALSE,16777216); spTree1->PutHasButtonsCustom(VARIANT_TRUE,33554432); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2"); var_Items->InsertItem(h,vtMissing,"Child"); |
176 |
Can I use your EBN files to change the visual appearance for radio buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->PutRadioImage(VARIANT_FALSE,16777216); spTree1->PutRadioImage(VARIANT_TRUE,33554432); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Radio")))->PutDef(EXTREELib::exCellHasRadioButton,VARIANT_TRUE); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->AddItem("Radio 1"); var_Items->PutCellState(var_Items->AddItem("Radio 2"),long(0),1); var_Items->AddItem("Radio 3"); |
175 |
Can I use your EBN files to change the visual appearance for checkbox cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->PutCheckImage(EXTREELib::Unchecked,16777216); spTree1->PutCheckImage(EXTREELib::Checked,33554432); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Check")))->PutDef(EXTREELib::exCellHasCheckBox,VARIANT_TRUE); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->AddItem("Check 1"); var_Items->PutCellState(var_Items->AddItem("Check 2"),long(0),1); |
174 |
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spTree1->PutBackground(EXTREELib::exHSThumb,0x1000000); spTree1->PutBackground(EXTREELib::exHSThumbP,0x2000000); spTree1->PutBackground(EXTREELib::exHSThumbH,0x3000000); spTree1->PutBackground(EXTREELib::exVSThumb,0x1000000); spTree1->PutBackground(EXTREELib::exVSThumbP,0x2000000); spTree1->PutBackground(EXTREELib::exVSThumbH,0x3000000); spTree1->PutColumnAutoResize(VARIANT_FALSE); spTree1->PutScrollBySingleLine(VARIANT_TRUE); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"S")))->PutWidth(483); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutItemHeight(var_Items->AddItem("Item 1"),248); spTree1->GetItems()->AddItem("Item 2"); |
173 |
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spTree1->PutBackground(EXTREELib::exHSThumb,0x1000000); spTree1->PutBackground(EXTREELib::exHSThumbP,0x2000000); spTree1->PutBackground(EXTREELib::exHSThumbH,0x3000000); spTree1->PutColumnAutoResize(VARIANT_FALSE); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"S")))->PutWidth(483); |
172 |
I've seen that you can change the visual appearance for the scroll bar. How can I do that
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spTree1->PutBackground(EXTREELib::exSBtn,0x1000000); spTree1->PutBackground(EXTREELib::exSBtnP,0x2000000); spTree1->PutBackground(EXTREELib::exSBtnH,0x3000000); spTree1->PutBackground(EXTREELib::exHSBack,RGB(240,240,240)); spTree1->PutBackground(EXTREELib::exVSBack,RGB(240,240,240)); spTree1->PutBackground(EXTREELib::exScrollSizeGrip,RGB(240,240,240)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E4")))->PutWidth(32); spTree1->PutColumnAutoResize(VARIANT_FALSE); spTree1->PutScrollBars(EXTREELib::exDisableBoth); |
171 |
Is there any option to highligth the column from the cursor - point
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->PutBackground(EXTREELib::exCursorHoverColumn,0x1000000); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E4")))->PutWidth(32); |
170 |
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->PutBackground(EXTREELib::exSelBackColorFilter,0x1000000); spTree1->PutBackground(EXTREELib::exSelForeColorFilter,RGB(255,20,20)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE); |
169 |
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->PutBackground(EXTREELib::exDateHeader,0x1000000); spTree1->PutBackground(EXTREELib::exDateTodayUp,0x1000000); spTree1->PutBackground(EXTREELib::exDateTodayDown,0x2000000); spTree1->PutBackground(EXTREELib::exDateScrollThumb,0x1000000); spTree1->PutBackground(EXTREELib::exDateScrollRange,RGB(230,230,230)); spTree1->PutBackground(EXTREELib::exDateSeparatorBar,RGB(230,230,230)); spTree1->PutBackground(EXTREELib::exDateSelect,0x1000000); EXTREELib::IColumnPtr var_Column = ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Date"))); var_Column->PutFilterType(EXTREELib::exDate); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); |
168 |
How do I change the visual aspect of the close button in the filter bar, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->PutBackground(EXTREELib::exFooterFilterBarButton,0x1000000); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Filter")))->PutFilterType(EXTREELib::exBlanks); spTree1->ApplyFilter(); |
167 |
How do I change the visual aspect of buttons in the cell, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->PutBackground(EXTREELib::exCellButtonUp,0x1000000); spTree1->PutBackground(EXTREELib::exCellButtonDown,0x2000000); spTree1->PutSelForeColor(RGB(0,0,0)); spTree1->PutShowFocusRect(VARIANT_FALSE); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Column 1")))->PutDef(EXTREELib::exCellHasButton,VARIANT_TRUE); spTree1->GetItems()->AddItem("Button 1"); spTree1->GetItems()->AddItem("Button 2"); spTree1->GetColumns()->Add(L"Column 2"); |
166 |
How do I change the visual aspect of the drop down filter button, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->PutBackground(EXTREELib::exHeaderFilterBarButton,0x1000000); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE); |
165 |
Is there any function to get the control's data in your x-script format / template
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(spTree1->GetToTemplate(vtMissing)); |
164 |
How do I enable resizing the columns at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutColumnsAllowSizing(VARIANT_TRUE); spTree1->PutMarkSearchColumn(VARIANT_FALSE); spTree1->PutHeaderVisible(VARIANT_FALSE); spTree1->GetColumns()->Add(L"Column 1"); spTree1->GetColumns()->Add(L"Column 2"); spTree1->PutDrawGridLines(EXTREELib::exVLines); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem("Item 1"),long(1),"Sub Item 1"); EXTREELib::IItemsPtr var_Items1 = spTree1->GetItems(); var_Items1->PutCellCaption(var_Items1->AddItem("Item 2"),long(1),"Sub Item 2"); |
163 |
How can I select the second inner column when spliting the cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSelectColumnInner(1); spTree1->PutFullRowSelect(VARIANT_FALSE); spTree1->PutDrawGridLines(EXTREELib::exAllLines); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellCaption(vtMissing,var_Items->GetSplitCell(var_Items->AddItem("Split Cell 1.1"),long(0)),"Split Cell 2.1"); var_Items->PutCellCaption(vtMissing,var_Items->GetSplitCell(var_Items->AddItem("Split Cell 1.2"),long(0)),"Split Cell 2.2"); var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE); |
162 |
How can I sort by multiple columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSingleSort(VARIANT_FALSE); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"C1")))->PutSortOrder(EXTREELib::SortAscending); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"C2")))->PutSortOrder(EXTREELib::SortDescending); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"C3")))->PutSortOrder(EXTREELib::SortAscending); |
161 |
How can I add several columns to control's sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSortBarVisible(VARIANT_TRUE); spTree1->PutSortBarColumnWidth(48); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"C1")))->PutSortOrder(EXTREELib::SortAscending); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"C2")))->PutSortOrder(EXTREELib::SortDescending); |
160 |
How can I change the width of the columns being displayed in the sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSortBarVisible(VARIANT_TRUE); spTree1->PutSortBarColumnWidth(48); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"C1")))->PutSortOrder(EXTREELib::SortAscending); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"C2")))->PutSortOrder(EXTREELib::SortDescending); |
159 |
How can I change the height of the sort bar's
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSortBarVisible(VARIANT_TRUE); spTree1->PutSortBarHeight(48); |
158 |
How can I change the sort bar's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSortBarVisible(VARIANT_TRUE); spTree1->PutForeColorSortBar(RGB(255,0,0)); |
157 |
How can I change the visual appearance of the control's sort bar, using EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spTree1->PutSortBarVisible(VARIANT_TRUE); spTree1->PutBackColorSortBar(0x1000000); spTree1->PutBackColorSortBarCaption(0x2000000); spTree1->PutAppearance(EXTREELib::None2); |
156 |
How can I change the sort bar's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSortBarVisible(VARIANT_TRUE); spTree1->PutBackColorSortBar(RGB(255,0,0)); spTree1->PutBackColorSortBarCaption(RGB(128,0,0)); |
155 |
How can I change the default caption being displayed in the control's sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSortBarVisible(VARIANT_TRUE); spTree1->PutSortBarCaption(L"new caption"); |
154 |
How can I show the locked / fixed items on the bottom side of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutShowLockedItems(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutLockedItemCount(EXTREELib::MiddleAlignment,2); var_Items->PutCellCaption(var_Items->GetLockedItem(EXTREELib::MiddleAlignment,0),long(0),"locked item 1"); var_Items->PutCellCaption(var_Items->GetLockedItem(EXTREELib::MiddleAlignment,1),long(0),"locked item 2"); var_Items->AddItem("un-locked item"); |
153 |
How can I show the locked / fixed items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutShowLockedItems(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutLockedItemCount(EXTREELib::TopAlignment,2); var_Items->PutCellCaption(var_Items->GetLockedItem(EXTREELib::TopAlignment,0),long(0),"locked item 1"); var_Items->PutCellCaption(var_Items->GetLockedItem(EXTREELib::TopAlignment,1),long(0),"locked item 2"); var_Items->AddItem("un-locked item"); |
152 |
How can I hide the locked / fixed items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutShowLockedItems(VARIANT_FALSE); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutLockedItemCount(EXTREELib::TopAlignment,1); var_Items->PutCellCaption(var_Items->GetLockedItem(EXTREELib::TopAlignment,0),long(0),"locked item"); var_Items->AddItem("un-locked item"); |
151 |
How can I show the control's sort bar
|
150 |
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spTree1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))))); spTree1->PutPictureDisplayLevelHeader(EXTREELib::Stretch); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E4")))->PutWidth(32); |
149 |
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spTree1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))))); spTree1->PutPictureDisplayLevelHeader(EXTREELib::MiddleRight); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"E")))->PutWidth(32); |
148 |
How can I display a picture on the control's header, when multiple levels are displayed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spTree1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); |
147 |
How can I change the header's background color, when multiple levels are displayed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutBackColorLevelHeader(RGB(250,0,0)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); |
146 |
Can I programmatically scroll the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(long(0)); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); spTree1->GetItems()->AddItem(long(3)); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); spTree1->PutScrollPos(VARIANT_TRUE,1); |
145 |
How do I disable expanding or collapsing an item when user presses the arrow keys
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutExpandOnKeys(VARIANT_FALSE); spTree1->PutLinesAtRoot(EXTREELib::exLinesAtRoot); spTree1->GetColumns()->Add(L"Column 1"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
144 |
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutExpandOnSearch(VARIANT_TRUE); spTree1->PutLinesAtRoot(EXTREELib::exLinesAtRoot); spTree1->PutAutoSearch(VARIANT_TRUE); ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Column")))->PutAutoSearch(EXTREELib::exContains); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->InsertItem(var_Items->InsertItem(var_Items->AddItem("text"),vtMissing,"some text"),vtMissing,"another text"); var_Items->InsertItem(var_Items->InsertItem(var_Items->AddItem("text"),vtMissing,"some text"),vtMissing,"another text"); |
143 |
Can I programmatically scroll the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(long(0)); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); spTree1->GetItems()->AddItem(long(3)); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); spTree1->Scroll(EXTREELib::exScrollDown,vtMissing); |
142 |
Do you have some function to load data from a safe array
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(long(0)); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); |
141 |
Do you have some function to retrieve all items to a safe array
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(long(0)); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); spTree1->GetItems()->AddItem(long(1)); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); spTree1->GetItems()->AddItem(long(2)); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); spTree1->GetItems()->AddItem(long(3)); |
140 |
How can still display the selected items when the control loses the focus
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutHideSelection(VARIANT_FALSE); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->AddItem("Item 3"); var_Items->AddItem("Item 1"); var_Items->PutSelectItem(var_Items->AddItem("Item 2"),VARIANT_TRUE); |
139 |
How can I hide a column
|
138 |
How can I ensure that a column is visible and fits the control's client area
|
137 |
I've seen that the width of the tooltip is variable. Can I make it larger
|
136 |
How do I disable showing the tooltip for all control
|
135 |
How do I let the tooltip being displayed longer
|
134 |
How do I show the tooltip quicker
|
133 |
How do I change the caption being displayed in the control's filter bar
|
132 |
How do I disable expanding or collapsing an item when user double clicks it
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutExpandOnDblClick(VARIANT_FALSE); spTree1->PutLinesAtRoot(EXTREELib::exLinesAtRoot); spTree1->PutIndent(13); spTree1->GetColumns()->Add(L"Column 1"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
131 |
How do I search case sensitive, using your incremental search feature
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutAutoSearch(VARIANT_TRUE); spTree1->PutASCIILower(L""); EXTREELib::IColumnsPtr var_Columns = spTree1->GetColumns(); ((EXTREELib::IColumnPtr)(var_Columns->Add(L"exStartWith")))->PutAutoSearch(EXTREELib::exStartWith); ((EXTREELib::IColumnPtr)(var_Columns->Add(L"exContains")))->PutAutoSearch(EXTREELib::exContains); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem("text"),long(1),"another text"); EXTREELib::IItemsPtr var_Items1 = spTree1->GetItems(); var_Items1->PutCellCaption(var_Items1->AddItem("text"),long(1),"another text"); |
130 |
How do I disable the control
|
129 |
How do I enable the incremental search feature within a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutAutoSearch(VARIANT_TRUE); EXTREELib::IColumnsPtr var_Columns = spTree1->GetColumns(); ((EXTREELib::IColumnPtr)(var_Columns->Add(L"exStartWith")))->PutAutoSearch(EXTREELib::exStartWith); ((EXTREELib::IColumnPtr)(var_Columns->Add(L"exContains")))->PutAutoSearch(EXTREELib::exContains); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem("text"),long(1),"another text"); EXTREELib::IItemsPtr var_Items1 = spTree1->GetItems(); var_Items1->PutCellCaption(var_Items1->AddItem("text"),long(1),"another text"); |
128 |
How do I call your x-script language
|
127 |
How do I call your x-script language
|
126 |
How do I show alternate rows in different background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutBackColorAlternate(RGB(240,240,240)); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->AddItem("Item 1"); var_Items->AddItem("Item 2"); var_Items->AddItem("Item 3"); var_Items->AddItem("Item 4"); var_Items->AddItem("Item 5"); |
125 |
How do I enlarge the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutFilterBarDropDownHeight("-320"); EXTREELib::IColumnPtr var_Column = ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterBarDropDownWidth("-320"); spTree1->GetItems()->AddItem("Item 1"); spTree1->GetItems()->AddItem("Item 2"); |
124 |
How do I filter programatically the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); EXTREELib::IColumnPtr var_Column = ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXTREELib::exPattern); var_Column->PutFilter(L"Item*"); spTree1->GetItems()->AddItem("Item 1"); spTree1->GetItems()->AddItem(""); spTree1->GetItems()->AddItem("Item 2"); spTree1->ApplyFilter(); |
123 |
How do I change the font of the control's filterbar
|
122 |
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->PutFilterBarBackColor(0x1000000); EXTREELib::IColumnPtr var_Column = ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXTREELib::exBlanks); spTree1->ApplyFilter(); |
121 |
How do I change the background color of the control's filterbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutFilterBarBackColor(RGB(240,240,240)); EXTREELib::IColumnPtr var_Column = ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXTREELib::exBlanks); spTree1->ApplyFilter(); |
120 |
How do I change the foreground color of the control's filterbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutFilterBarForeColor(RGB(255,0,0)); EXTREELib::IColumnPtr var_Column = ((EXTREELib::IColumnPtr)(spTree1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXTREELib::exBlanks); spTree1->ApplyFilter(); |
119 |
How do I change the height of the control's filterbar
|
118 |
How do select only a portion of text when the control starts editing a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutAllowEdit(VARIANT_TRUE); spTree1->PutSelStart(1); spTree1->PutSelLength(1); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem("Item 1"); spTree1->GetItems()->AddItem("Item 2"); |
117 |
How do I change the header's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutForeColorHeader(RGB(255,0,0)); spTree1->GetColumns()->Add(L"Column 1"); spTree1->GetColumns()->Add(L"Column 2"); spTree1->GetItems()->AddItem("Item 1"); |
116 |
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutPicture(IPictureDispPtr(((IDispatch*)(spTree1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spTree1->PutSelBackMode(EXTREELib::exTransparent); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem("Item 1"); spTree1->GetItems()->AddItem("Item 2"); |
115 |
It seems that the control uses the TAB key, is there any way to avoid that
|
114 |
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSelectColumnIndex(1); spTree1->PutFullRowSelect(VARIANT_FALSE); spTree1->PutSelectColumn(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Column 1"); spTree1->GetColumns()->Add(L"Column 2"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem("Item 1"),long(1),"SubItem 1"); |
113 |
How do I assign a database to your control, using ADO, ADOR or ADODB objects
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutColumnAutoResize(VARIANT_FALSE); spTree1->PutContinueColumnScroll(VARIANT_FALSE); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* Copy and paste the following directives to your header file as it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library' #import <msado15.dll> rename("EOF","REOF") */ ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset"); rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\Access\\sample.mdb",ADODB::adOpenStatic,ADODB::adLockOptimistic,0); spTree1->PutDataSource(((ADODB::_RecordsetPtr)(rs))); |
112 |
How do I change the visual appearance effect for the selected item, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spTree1->PutSelBackColor(0x1000000); spTree1->PutSelForeColor(RGB(0,0,0)); spTree1->PutShowFocusRect(VARIANT_FALSE); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(long(0)); spTree1->GetItems()->AddItem(long(1)); |
111 |
How do I change the colors for the selected item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSelBackColor(RGB(0,0,0)); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(long(0)); spTree1->GetItems()->AddItem(long(1)); |
110 |
How do I get ride of the rectangle arround focused item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutShowFocusRect(VARIANT_FALSE); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(long(0)); spTree1->GetItems()->AddItem(long(1)); |
109 |
How can I change the control's font
|
108 |
I can't scroll to the end of the data. What can I do
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutScrollBySingleLine(VARIANT_TRUE); spTree1->PutDrawGridLines(EXTREELib::exRowLines); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); var_Items->PutItemHeight(var_Items->AddItem(long(0)),13); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); EXTREELib::IItemsPtr var_Items1 = spTree1->GetItems(); var_Items1->PutItemHeight(var_Items1->AddItem(long(1)),26); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); EXTREELib::IItemsPtr var_Items2 = spTree1->GetItems(); var_Items2->PutItemHeight(var_Items2->AddItem(long(2)),36); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); EXTREELib::IItemsPtr var_Items3 = spTree1->GetItems(); var_Items3->PutItemHeight(var_Items3->AddItem(long(3)),48); spTree1->PutItems(spTree1->GetItems(long(0)),vtMissing); |
107 |
How do I specify the column where the tree lines / hierarchy are shown
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutLinesAtRoot(EXTREELib::exGroupLinesAtRoot); spTree1->PutTreeColumnIndex(1); spTree1->GetColumns()->Add(L"Column 1"); spTree1->GetColumns()->Add(L"Column 2"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellCaption(h,long(1),"Root 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellCaption(h,long(1),"Root 2.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); |
106 |
How do I specify the indentation of the child items relative to their parents
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutLinesAtRoot(EXTREELib::exGroupLinesAtRoot); spTree1->PutIndent(11); spTree1->GetColumns()->Add(L"Column"); EXTREELib::IItemsPtr var_Items = spTree1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2"); var_Items->InsertItem(h,vtMissing,"Child"); |
105 |
Is there any option to select an item using the right button of the mouse (rclick)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutRClickSelect(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem("Item 1"); spTree1->GetItems()->AddItem("Item 2"); |
104 |
How do I edit a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutAllowEdit(VARIANT_TRUE); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem("Item 1"); spTree1->GetItems()->AddItem("Item 2"); |
103 |
I have FullRowSelect property on False, how do I select a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSelectColumnIndex(1); spTree1->PutFullRowSelect(VARIANT_FALSE); |
102 |
How can I scroll columns one by one, not pixel by pixel
|
101 |
How can I enable multiple items selection
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREELib' for the library: 'ExTree 1.0 Control Library' #import <ExTree.dll> using namespace EXTREELib; */ EXTREELib::ITreePtr spTree1 = GetDlgItem(IDC_TREE1)->GetControlUnknown(); spTree1->PutSingleSel(VARIANT_FALSE); spTree1->GetColumns()->Add(L"Column"); spTree1->GetItems()->AddItem(long(0)); spTree1->GetItems()->AddItem(long(1)); spTree1->GetItems()->AddItem(long(2)); |